﻿
using System;

namespace Library.WebControls {
	/// <summary>
	/// Paging control
	/// </summary>
	public interface IPagingControl {
		/// <summary>
		/// Paging datasource
		/// </summary>
		object DataSource { get; set; }
		/// <summary>
		/// Data binding
		/// </summary>
		void DataBind();
		/// <summary>
		/// Current page index
		/// </summary>
		int PageIndex { get; set; }
		/// <summary>
		///  Current page size
		/// </summary>
		int PageSize { get; set; }
		/// <summary>
		/// Total item found
		/// </summary>
		int TotalItems { get; set; }
		/// <summary>
		/// Get or set paging type
		/// </summary>
		PagingType PagingType { get; set; }

		/// <summary>
		/// Fire on client changed page index display
		/// </summary>
		event EventHandler PageIndexChanged;
	}
}
